﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.Mvc;

namespace MVCUI
{
    public class GridConfiguration
    {
        string deleteAction = "";
        string editAction = "";
        string updateAction = "";
        bool sortable = true;
        int pageSize = 10;
        string jQueryDatePickerOptions;
        private bool jQueryDatePicker = true;
        string selectedRowBgColor = "#ededed";
        public GridConfiguration(string deleteActionMethod = "", string editActionMethod="", string updateActionMethod ="", bool pager=true)
        {
            deleteAction = deleteActionMethod;
            editAction = editActionMethod;
            updateAction = updateActionMethod;
        }

        public string DeleteAction
        {
            get { return deleteAction; }
            set { deleteAction = value; }
        }

        public string EditAction
        {
            get { return editAction; }
            set { editAction = value; }
        }

        public string UpdateAction
        {
            get { return updateAction; }
            set { updateAction = value; }
        }

        public int PageSize
        {
            get { return pageSize; }
            set { pageSize = value; }
        }

        public bool Sortable
        {
            get { return sortable; }
            set { sortable = value; }
        }
        /// <summary>
        /// Register Jquery date picker for date column type
        /// </summary>
        public bool RegisterJQueryDatePicker
        {
            get { return jQueryDatePicker; }
            set { jQueryDatePicker = value; }
        }

        public string JQueryDatePickerOptions
        {
            get { return jQueryDatePickerOptions; }
            set { jQueryDatePickerOptions = value; }
        }

        public string SelectedRowBgColor
        {
            get { return selectedRowBgColor; }
            set { selectedRowBgColor = value; }
        }

        

    }
}
